package com.sjb.sixteen_journey_backend.service;

import com.sjb.sixteen_journey_backend.common.R;
import com.sjb.sixteen_journey_backend.entity.AirTicket;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 机票晒单表 服务类
 * </p>
 *
 * @author jcz
 * @since 2024-07-13
 */
public interface IAirTicketService extends IService<AirTicket> {

    R addAirTicket(AirTicket airTicket);
//    R addAirTicket(AirTicket airTicket, ArrayList<MultipartFile> images);

    R deleteAirTicketById(Integer id);
//    R deleteAirTicketById(Integer status, Integer id);

    R<List<AirTicket>> showAllAirTicket();

    R showAllAirTicketById( Integer id,Boolean f);

    R<List<AirTicket>> showAllAirTicketByUserId();

    R<List<AirTicket>> getOtherAirTicket(String originCity, String arriveCity);

    AirTicket setCountAndFollow(AirTicket myTime);
}
